package common.server.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 外部响应报文消息
 * 
 * @author Administrator
 * @version [版本号, 2017/11/15 0015]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@ApiModel(value = "OutsideResponseMessage", description = "统一响应封装对象,所有响应抽象参数对象")
public class OutsideResponseMessage<T> extends Message {


	/**
	 * 响应状态码
	 */
	@ApiModelProperty(value = "响应状态码",position =1)
	private String retCode;

	/**
	 * 响应中文描述，用于提示用户
	 */
	@ApiModelProperty(value = "响应中文描述，用于提示用户",position =2)
	private String retDesc;

	/**
	 * 返回数据
	 */
	@ApiModelProperty(value = "响应返回数据",position =3)
	private T rspBody;


	public String getRetCode() {
		return retCode;
	}

	public OutsideResponseMessage setRetCode(String retCode) {
		this.retCode = retCode;
		return this;
	}

	public String getRetDesc() {
		return retDesc;
	}

	public OutsideResponseMessage setRetDesc(String retDesc) {
		this.retDesc = retDesc;
		return this;
	}

	public T getRspBody() {
		return rspBody;
	}

	public OutsideResponseMessage setRspBody(T rspBody) {
		this.rspBody = rspBody;
		return this;
	}

	@Override
	public String toString() {
		return "OutsideResponseMessage{" + "rspBody=" + rspBody + ", retCode='"
				+ retCode + '\'' + ", retDesc='" + retDesc + '\'' + '}';
	}
}
